import React from "react";
import "./index.scss";
const Icon = props => {
	const { className = "", code } = props;

	return (
		<svg className={`icon ${className}`} aria-hidden="true" {...props}>
			<use xlinkHref={`#${code}`}></use>
		</svg>
	);
};
export default Icon;
